5.3. Global pointers to Objects

The next section of module is a declaration of global pointers. It may look like that:

Indicator<float> *pindMinT,*pindMaxT;
Indicator<int> *pindStep,*pindN;
extern Indicator<float> *pindDisbal,*pindModule;
extern Board *pbdTdependance;

The global pointers are necessary for other functions or modules to have access to the Objects declared in the main function and button procedures. In practice almost all Objects require global pointer. Look at the Example 4.4.1.